﻿@using Nop.Core.Infrastructure;
@using Telerik.Web.Mvc.UI;
@{
    var displayMiniProfiler = EngineContext.Current.Resolve<Nop.Core.Domain.StoreInformationSettings>().DisplayMiniProfilerInPublicStore;
    
    //resources
    
    Html.AppendCssFileParts("~/subsites/Commerce/Content/smoothness/jquery-ui-1.8.17.custom.css");
    Html.AppendCssFileParts("~/Content/css/commerce.css");
    Html.AppendCssFileParts("~/Content/css/spotshub.css");
    if (Html.IsBetaEnabled())
    {
        Html.AppendCssFileParts("~/Content/css/betaLegacy.css");
    }
    else
    {
        Html.AppendCssFileParts("~/Content/css/noBetaLegacy.css");
    }
    Html.AppendScriptParts("~/Scripts/SpotsHUB.common.js");
    Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
    Html.AppendScriptParts("~/Scripts/public.onepagecheckout.js");
    Html.AppendScriptParts("~/Scripts/jquery.mousewheel.min.js");
    Html.AppendScriptParts("~/Scripts/jquery.easing.1.3.js");
    Html.AppendScriptParts("~/Scripts/jquery.validate.unobtrusive.min.js");
    Html.AppendScriptParts("~/Scripts/jquery.validate.min.js");
    Html.AppendScriptParts("~/Scripts/jquery.unobtrusive-ajax.min.js");
}
<!DOCTYPE html>
<html @Html.Partial("LanguageAttributes")>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@Html.NopTitle(true)</title>
    <meta name="description" content="@(Html.NopMetaDescription())" />
    <meta name="keywords" content="@(Html.NopMetaKeywords())" />
    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
    <script>window.jQuery || document.write('<script src="/Scripts/jquery-1.11.2.min.js"><\/script>')</script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
    <script>window.jQuery.ui || document.write('<script src="/Scripts/jquery-ui.min.js"><\/script>')</script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script>if (typeof ($.fn.modal) === 'undefined') { document.write('<script src="/Scripts/bootstrap.min.js"><\/script>') }</script>
    <script src="/Scripts/SpotsHUB.common.js"></script>
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href='//fonts.googleapis.com/css?family=Open+Sans:400italic,700,300,400' rel='stylesheet' type='text/css'>
    @*This is used so that themes can inject content into the header*@
    @Html.AddAzureInsightsScript()
    @Html.Widget("head_html_tag")
    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
    @Html.NopCanonicalUrls()
    @(Html.Telerik().StyleSheetRegistrar()
    .DefaultGroup(group => group
        .Add("telerik.common.min.css")
        .Add("telerik.spotshub.min.css")
    ))
    @(Html.Telerik().ScriptRegistrar()
        .jQuery(false)
        .jQueryValidation(false)
    )
</head>
<body id="spotshub-commerce" class="@if(ViewBag.Home as bool? == true){<text>home</text>}">
    @RenderBody()
</body>
</html>
